/**
  ******************************************************************************
  * @file    Project/Bsp/motorControl.h 
  * @author  zlf
  * @version V1.0.0
  * @date    15-7-2018
  * @brief   Header for motorControl.c module
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef    __MOTORCONTROL_H
#define    __MOTORCONTROL_H

/* Includes ------------------------------------------------------------------*/
	#include "main.h"

/* Exported macro ------------------------------------------------------------*/


/* define the gpio of SERVO CTRL */


/* Exported constants --------------------------------------------------------*/



/* Exported types ------------------------------------------------------------*/
typedef  struct{
	void (* init )(void);
	void (* enabled )(void);
	void (* disabled )(void);
	void (* foreward )(void);
	void (* reversal )(void);
	void (* stop )(void);
	void (* changeACC )(void);
	void (* changeDEC )(void);
	void (* encoderValue )(void);
	void (* touchDownMove) (void);
}MotorControl_Typedef;


/* Exported varables ----------------------------------------------------------*/
extern MotorControl_Typedef motorControl;
/* Exported functions ---------------------------------------------------------*/
extern void motor_test_enabled( void );

#endif /*  */
 
 
